package com.letoken.platform.admin.controller;

import com.letoken.platform.pub.annotation.auth.NotAuthorization;
import com.letoken.platform.pub.res.ApiResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author letokenlabs
 * @date 2023/4/14$
 */
@RestController
@RequestMapping("/test")
@Api(tags = "test", description = "test")
public class TestController {

    @GetMapping("/hello")
    @ApiOperation(value = "hello", notes = "hello")
    @NotAuthorization
    public ApiResponse<String> hello() {
        return ApiResponse.create("hello");
    }

    @GetMapping("/hello_user")
    @ApiOperation(value = "hello_user", notes = "hello_user")
    public ApiResponse<String> helloUser() {
        return ApiResponse.create("hello_user");
    }

}
